﻿<%@ Page Title="Recipes - Traditional Maltese Cuisine" Language="C#" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="true" CodeBehind="Recipes.aspx.cs" Inherits="TraditionalMalteseCuisine.Recipes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <div class="main_title"><asp:Label ID="lblMainTitle" runat="server" Text="Recipes" CssClass="label" Font-Size="Large" /></div>
    <br /><br />
    <div class="middle_center"><asp:Label ID="lblMessage" runat="server" Text="No Recipes To Display" CssClass="label" Font-Size="Large" ForeColor="Maroon" Visible="False" /></div>
    <div id="control_wrapper" runat="server">
        <div class="navigation">
            <asp:HyperLink ID="lnkTopPrevious" runat="server" Font-Bold="True">< Previous</asp:HyperLink>
            <asp:Label ID="lblTopCurrentPage" runat="server" Font-Bold="True" />
            <asp:HyperLink ID="lnkTopNext" runat="server" Font-Bold="True">Next ></asp:HyperLink>
        </div>
        <br />
        <asp:Repeater ID="rptRecipies" runat="server">
            <HeaderTemplate><div id="recipes_listing"></HeaderTemplate>
            <ItemTemplate>
                <div id="recipe_row">
                    <div id="recipe_row_header">
                        <a href='<%# string.Format("profile.aspx?user={0}", Eval("member_id")) %>'><img src='<%# Eval("avatar").ToString() %>' alt="Click to visit profile..." class="profile_thumbnail_image" /></a>
                        <a href='<%# string.Format("profile.aspx?user={0}", Eval("member_id")) %>'><%# string.Format("{0} {1}", Eval("lastname"), Eval("firstname")) %></a> shared "<a href='<%# string.Format("details.aspx?item={0}", Eval("id")) %>'><%# Eval("recipe_name") %></a>" on <i><%# string.Format("{0:dd-MMM-yyyy}", Eval("posted_date")) %></i>
                    </div>
                    <a href='<%# string.Format("details.aspx?item={0}", Eval("id")) %>'>
                        <div id="recipe_row_preview">
                            <img src='<%# Eval("thumbnail_location").ToString() %>' alt="Click for more details..." class="thumbnail_image" />
                        </div>
                        <div id="recipe_row_description">
                            <p><%# string.Format("{0}", Eval("description")) %></p>
                        </div>
                    </a>
                    <div id="recipe_row_footer">
                        Level: <a href='<%# string.Format("recipes.aspx?level={0}", Eval("level_id")) %>'><%# string.Format("{0}", Eval("level_name")) %></a>
                    </div>
                </div>
            </ItemTemplate>
            <FooterTemplate></div></FooterTemplate>
        </asp:Repeater>
        <br />
        <div class="navigation">
            <asp:HyperLink ID="lnkBottomPrevious" runat="server" Font-Bold="True">< Previous</asp:HyperLink>
            <asp:Label ID="lblBottomCurrentPage" runat="server" Font-Bold="True" />
            <asp:HyperLink ID="lnkBottomNext" runat="server" Font-Bold="True">Next ></asp:HyperLink>
        </div>
    </div>
</asp:Content>
